/**
 * 菜单设置Hook
 */
import { useConfig } from "@/store/baseConfig";
import { computed } from "vue";


export const useMenuSetting = () => {
  const configStore = useConfig();
  const toggleCollapse = () => {
    configStore.setMenuCollapse(!configStore.isCollapse)
  };
  const getCollapsed = computed(() => configStore.getCollapsed)
  return {
    getCollapsed,
    toggleCollapse
  }
}
